<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>MyBug系统--查询页面</title>
<link rel="stylesheet" type="text/css" href="css/search.css" />
<link rel="stylesheet" type="text/css" href="css/result.css" />
<script type="text/javascript" src="js/jquery.min.js"></script></head>

<body>

	<jsp:include page="total.jsp"></jsp:include>
	<div class="to_input">
		<form action="buginfocontr/findbydescription" method="post">
			<input type="text" name="description" id="input" value="${description}" /><input
				type="submit" value="BUG" id="bug" />

		</form>

		<div class="show"></div>
	</div>
	<div class="search">
		<div style="height:50px;"></div>
		<c:forEach items="${bugList }" var="buglist">
			<div class="buglist">
				<a href="buginfocontr/findbyid/${buglist.bugId }" target="_black">${buglist.description}</a>
			</div>

		</c:forEach>


	</div>
	<ul class="paging">

		<li><a
			href="buginfocontr/findbydescription?pageIndex=1&description=${description}">1</a>
		</li>
		<c:if test="${pageNumber > 1 }">
			<li><a
				href="buginfocontr/findbydescription?pageIndex=2&description=${description}">2</a>
			</li>
		</c:if>
		
		<c:if test="${pageNumber > 2 }">
			<li><a
				href="buginfocontr/findbydescription?pageIndex=3&description=${description}">3</a>
			</li>
		</c:if>

		<c:if test="${pageNumber > 3 }">
			<li><a
				href="buginfocontr/findbydescription?pageIndex=4&description=${description}">4</a>
			</li>
		</c:if>
		
		<c:if test="${pageNumber > 4 }">
			<li><a
				href="buginfocontr/findbydescription?pageIndex=5&description=${description}">5</a>
			</li>
		</c:if>

		<c:if test="${pageIndex < pageNumber }">
			<li class="next" style="width: 100px;"><a href="buginfocontr/findbydescription?pageIndex=${pageIndex + 1}&description=${description}">下一页&gt;</a></li>
		</c:if>
		<c:if test="${pageIndex == pageNumber }">
			<li class="next" style="width: 100px;"><a href="buginfocontr/findbydescription?pageIndex=${pageNumber}&description=${description}">下一页&gt;</a></li>
		</c:if>
	</ul>


	<script type="text/javascript">
<!--

//-->
		$(function(){
			$(".buglist").on("mouseover",function(){
				$(this).css("background-color","#dedede");
			});
			$(".buglist").on("mouseout",function(){
				$(this).css("background-color","white");
			});
		});
			
	
</script>


</body>

</html>